package blingking.jfinal.orm.tx;

import org.aspectj.lang.ProceedingJoinPoint;

/**
 * @author King
 * @description
 * @Date 2020/3/22
 */
public enum TxTypeEnum implements IJFinalORMTx {
    XA {
        @Override
        public Object execAOPTx(ProceedingJoinPoint pjp) throws Throwable {
            return XATx.execAOPTx(pjp);
        }
    },
    NATIVE {
        @Override
        public Object execAOPTx(ProceedingJoinPoint pjp) throws Throwable {
            return NativeTx.execAOPTx(pjp);
        }
    };
}
